<template>
  <div id="warp">
    <!-- 公共头部组件 -->
    <div class="head">
      <div class="left">开可蛋糕</div>
      <div class="right">开可蛋糕 款式定制 当天现做 送货上门</div>
      <!-- 搜索 -->
      <div class="search" @click="$router.push('/search')">
        <input type="search" value="搜索蛋糕、鲜花、组合" />
        <i style="font-size: 0.8rem" class="icon icon-sousuo"></i>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Header'
}
</script>

<style lang="scss" scoped>
html {
  font-size: 10px;
}

.head {
  height: 3rem;
  line-height: 3rem;
  background: pink;
  font-size: 0.5rem;
}
.left {
  margin: 0.2rem 0.2rem;
  overflow: hidden;
  text-align: center;
  width: 1.8rem;
  height: 1.8rem;
  line-height: 1rem;
  border-radius: 50px;
  border: 1px white solid;
  float: left;
  font-size: 0.4rem;
  color:red;
}
.right {
  margin-right: 4rem;
  color: red;
  float: right;
}
.search {
  width: 100%;
  height: 2.5rem;
  background: #f0eeef;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.2rem;
}
input {
  width: 90%;
  border: 1px solid pink;
  border-radius: 0.2rem;
  font-size: 0.5rem;
  padding: 0.3rem;
  color: pink;
  position: relative;
}
i {
  position: absolute;
  right: 1rem;
}
</style>
